@extends('layouts.app')
@section('web_title','综合统计')


@section('css')
    <link href="{{ asset('css/common_c.css') }}" rel="stylesheet">
    <link href="{{ asset('css/index.css') }}" rel="stylesheet">
    <link href="{{ asset('css/case.css') }}" rel="stylesheet">
    <link href="{{ asset('css/styleNew.css') }}" rel="stylesheet">
    <link href="{{ asset('css/style.css') }}" rel="stylesheet">
    <link href="{{ asset('css/main.css') }}" rel="stylesheet">
@endsection


@section('content')
    <div class="container-fluid">

        <!--全部病历-->
        @foreach ($results as $result)
            <div class="col-xs-2  box-border-top" style="padding: 0">
                <div class="col-xs-12 title">{{  $result['name']  }}</div>
                <!-- 点击中间栏时页面跳转到病例列表页面 ,  此处 a 的 href 添加全部病例对应参数⬇️-->
                <a class="col-xs-12 toCaseList" href="{{ route('manage.view.index', ['stage' => $result['type']]) }}">
                    <div class="col-lg-6 centerPartLeft">
                        <div class="text">患者数</div>
                        <div class="num">{{  $result['patient_count']  }}</div>
                    </div>
                    <div class="col-lg-6 centerPartRight">
                        <div class="text">病历数</div>
                        <div class="num">{{ $result['record_count'] }}</div>
                    </div>
                </a>
                <!-- 点击下方栏时页面跳转到添加病例页面 ,  此处 a 的 href 添加'全部病例'对应参数⬇️-->
                <a class="col-xs-12 addCase" href="{{ route('manage.view.store', ['stage' => $result['type']]) }}">
                    <div class="center"><i><img src="/images/addCaseR.png" alt=""></i>添加病历</div>
                </a>
            </div>
        @endforeach
    </div>


@endsection



@section('js')
    <script src="{{ asset('js/common_c.js') }}"></script>
    <script src="{{ asset('js/index.js') }}"></script>
    <script>
        $('#side-menu li.statsGround').addClass('active');//更改导航列表选中样式   不可删除
    </script>


@endsection